<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header">
	<!--summernote css -->
	<link href="/css/plugins/summernote/summernote-0.8.8.css"
		  rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${goods.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">编号：</label>
								<div class="col-sm-8">
									<input id="serialnumber" name="serialnumber" th:value="${goods.serialnumber}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">商品名称：</label>
								<div class="col-sm-8">
									<input id="productname" name="productname" th:value="${goods.productname}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">属性ID：</label>
								<div class="col-sm-8">
									<input id="attributeid" name="attributeid" th:value="${goods.attributeid}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">基本单位ID：</label>
								<div class="col-sm-8">
<!--									<input id="basicunitid" name="basicunitid" th:value="${goods.basicunitid}" class="form-control" type="text">-->
									<select name="basicunitid" id="basicunitid" class="form-control" >
										 <option th:field="*{goods.basicunitid}" th:each="units,userStat:${unitNameList}" th:value="${units.id}" th:text="${units.unitname}"></option>
									</select>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">零售价：</label>
								<div class="col-sm-8">
									<input id="retailprice" name="retailprice" th:value="${goods.retailprice}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">单位重量：</label>
								<div class="col-sm-8">
									<input id="unitweight" name="unitweight" th:value="${goods.unitweight}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">类别ID：</label>
								<div class="col-sm-8">
									<input id="classifyid" name="classifyid" th:value="${goods.classifyid}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">规格：</label>
								<div class="col-sm-8">
									<input id="specification" name="specification" th:value="${goods.specification}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">商品状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input
											th:field="*{goods.ifstart}" type="radio" name="ifstart" value="1" />
										启用
									</label> <label class="radio-inline"> <input
										th:field="*{goods.ifstart}" type="radio" name="ifstart" value="0" />
									不启用
								</label>
								</div>
<!--								<div class="col-sm-8">-->
<!--									<input id="ifstart" name="ifstart" th:value="${goods.ifstart}" class="form-control" type="text">-->
<!--								</div>-->
							</div>
									<div class="form-group">
										<input id="detail" name="detail" th:value="${goods.detail}" type="hidden">
										<label class="col-sm-3 control-label">商品详情：</label>
										<div class="col-sm-11">
											<div class="ibox-content no-padding">
												<div id="detail_sn" class="summernote"></div>
											</div>
										</div>
<!--								<label class="col-sm-3 control-label">商品详情：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<input id="detail" name="detail" th:value="${goods.detail}" class="form-control" type="text">-->
<!--								</div>-->
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">图片：</label>
								<div class="col-sm-8">
									<input id="picture" name="picture" th:value="${goods.picture}" class="form-control" type="text">
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer">
		<!--summernote-->
		<script src="/js/plugins/summernote/summernote.js"></script>
		<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
		<script src="/js/ajax-util.js"></script>
	</div>
	<script type="text/javascript" src="/js/appjs/goods/goods/edit.js">
	</script>
</body>
</html>
